<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>商城后台</title>
        <meta name="keywords"  />
        <meta name="description"  />
		<link rel="stylesheet" type="text/css" href="__ROOT__/Public/layui/css/layui.css" />
		<link rel="stylesheet" type="text/css" href="__ROOT__/Public/bootstrap/css/bootstrap.css" />
		<link rel="stylesheet" type="text/css" href="__ROOT__/Public/Admin/Css/identify.css" />
		<link rel="stylesheet" type="text/css" href="__ROOT__/Public/Admin/Css/layout.css" />
		<link rel="stylesheet" type="text/css" href="__ROOT__/Public/Admin/Css/account.css" />
		<link rel="stylesheet" type="text/css" href="__ROOT__/Public/Admin/Css/style.css" />
		<link rel="stylesheet" type="text/css" href="__ROOT__/Public/Admin/Css/control_index.css" />
		<link rel="stylesheet" type="text/css" href="__ROOT__/Public/Admin/Css/index.css" />

		<link rel="stylesheet" type="text/css" href="__ROOT__/Public/Admin/Css/page.css" />

		<script type="text/javascript" src="__ROOT__/Public/Admin/Js/jquery-1.7.2.min.js"></script>
		<script type="text/javascript" src="__ROOT__/Public/layui/layui.js"></script>
		<script type="text/javascript" src="__ROOT__/Public/Admin/Js/layer/layer.js"></script>
		<script type="text/javascript" src="__ROOT__/Public/Admin/Js/haidao.offcial.general.js"></script>
		<script type="text/javascript" src="__ROOT__/Public/Admin/Js/select.js"></script>
		<script type="text/javascript" src="__ROOT__/Public/Admin/Js/haidao.validate.js"></script>
	</head>

	<body>
		<div class="view-topbar">
			<div class="topbar-console">
				<div class="tobar-head fl">
					<a href="#" class="topbar-logo fl">
					<span><img src="__ROOT__/Public/Admin/Images/logo.png" width="20" height="20"/></span>
					</a>
					<a href="{{:U('Index/index')}}" class="topbar-home-link topbar-btn text-center fl"><span>管理控制台</span></a>
				</div>
			</div>
			<div class="topbar-info">
				<ul class="fr">
					<li class="fl dropdown topbar-notice topbar-btn">
					<a href="#" class="dropdown-toggle">
					<span class="icon-notice"></span>

					<!--have表示有消息，没有消息去掉have-->
					</a>
					</li>
					<li class="fl dropdown topbar-notice topbar-btn">
						<a href="__ROOT__" class="topbar-btn"><span class="fl text-normal">前台首页</span></a>
					</li>

					<li class="fl topbar-info-item">
					<div class="dropdown">
						<a href="#" class="topbar-btn">
						<span class="fl text-normal">{{$Think.session.admin}}</span>
						<span class="icon-arrow-down"></span>
						</a>
						<ul class="dropdown-menu">
							<li><a href="{{:U('Login/loginout')}}">退出</a></li>
						</ul>
					</div>
					</li>
				</ul>
			</div>
		</div>
		<div class="view-body">
			<div class="view-sidebar">
				<div class="sidebar-content">
					<div class="sidebar-nav sidebar-nav-fold">
						<div class="sidebar-title">
							<a href="#">
								<span class="icon"><b class="fl icon-arrow-down"></b></span>
								<span class="text-normal">用户管理</span>
							</a>
						</div>
						<ul class="sidebar-trans"style="overflow: hidden; display: none;" >
							<li>
								<a href="{{:U('User/index')}}">
									<b class="sidebar-icon"><img src="__ROOT__/Public/Admin/Images/icon_order.png" width="16" height="16" /></b>
									<span class="text-normal">用户列表</span>
								</a>
							</li>
							<li>
								<a href="{{:U('User/admin_index')}}">
									<b class="sidebar-icon"><img src="__ROOT__/Public/Admin/Images/icon_order.png" width="16" height="16" /></b>
									<span class="text-normal">管理员列表</span>
								</a>
							</li>
							<li>
								<a href="{{:U('User/add')}}">
									<b class="sidebar-icon"><img src="__ROOT__/Public/Admin/Images/icon_order.png" width="16" height="16" /></b>
									<span class="text-normal">添加用户</span>
								</a>
							</li>
							<li>
								<a href="{{:U('User/admin_add')}}">
									<b class="sidebar-icon"><img src="__ROOT__/Public/Admin/Images/icon_order.png" width="16" height="16" /></b>
									<span class="text-normal">添加管理员</span>
								</a>
							</li>
						</ul>
					</div>
					<div class="sidebar-nav sidebar-nav-fold">
						<div class="sidebar-title">
							<a href="#">
								<span class="icon"><b class="fl icon-arrow-down"></b></span>
								<span class="text-normal">产品管理</span>
							</a>
						</div>
						<ul class="sidebar-trans"style="overflow: hidden; display: none;">
							<li>
								<a href="{{:U('Goods/index')}}">
								<b class="sidebar-icon"><img src="__ROOT__/Public/Admin/Images/icon_order.png" width="16" height="16" /></b>
								<span class="text-normal">产品列表</span>
								</a>
							</li>
							<li>
								<a href="{{:U('Category/category')}}">
									<b class="sidebar-icon"><img src="__ROOT__/Public/Admin/Images/icon_order.png" width="16" height="16" /></b>
									<span class="text-normal">产品分类</span>
								</a>
							</li>
							<li>
								<a href="{{:U('Category/addTopCategory')}}">
									<b class="sidebar-icon"><img src="__ROOT__/Public/Admin/Images/icon_order.png" width="16" height="16" /></b>
									<span class="text-normal">添加顶级分类</span>
								</a>
							</li>
							<li>
								<a href="{{:U('Goods/add')}}">
									<b class="sidebar-icon"><img src="__ROOT__/Public/Admin/Images/icon_order.png" width="16" height="16" /></b>
									<span class="text-normal">添加商品</span>
								</a>
							</li>

						</ul>
					</div>
					<div class="sidebar-nav sidebar-nav-fold">
						<div class="sidebar-title">
							<a href="#">
								<span class="icon"><b class="fl icon-arrow-down"></b></span>
								<span class="text-normal">订单管理</span>
							</a>
						</div>
						<ul class="sidebar-trans"style="overflow: hidden; display: none;">
							<li>
								<a href="{{:U('Order/index')}}">
									<b class="sidebar-icon"><img src="__ROOT__/Public/Admin/Images/icon_order.png" width="16" height="16" /></b>
									<span class="text-normal">订单管理</span>
								</a>
							</li>
							<li>
								<a href="{{:U('Goods/evaluteall')}}">
									<b class="sidebar-icon"><img src="__ROOT__/Public/Admin/Images/icon_order.png" width="16" height="16" /></b>
									<span class="text-normal">评价管理</span>
								</a>
							</li>
						</ul>
					</div>
					<div class="sidebar-nav sidebar-nav-fold">
						<div class="sidebar-title">
							<a href="#">
								<span class="icon"><b class="fl icon-arrow-down"></b></span>
								<span class="text-normal">优惠券管理</span>
							</a>
						</div>
						<ul class="sidebar-trans"style="overflow: hidden; display: none;">
							<li>
								<a href="{{:U('Coupon/index')}}">
									<b class="sidebar-icon"><img src="__ROOT__/Public/Admin/Images/icon_order.png" width="16" height="16" /></b>
									<span class="text-normal">优惠券列表</span>
								</a>
							</li>
							<li>
								<a href="{{:U('Coupon/add')}}">
									<b class="sidebar-icon"><img src="__ROOT__/Public/Admin/Images/icon_order.png" width="16" height="16" /></b>
									<span class="text-normal">添加优惠券</span>
								</a>
							</li>
							<li>
								<a href="{{:U('Coupon/give')}}">
									<b class="sidebar-icon"><img src="__ROOT__/Public/Admin/Images/icon_order.png" width="16" height="16" /></b>
									<span class="text-normal">发放优惠券</span>
								</a>
							</li>
						</ul>
					</div>
					<div class="sidebar-nav sidebar-nav-fold">
						<div class="sidebar-title">
							<a href="#">
								<span class="icon"><b class="fl icon-arrow-down"></b></span>
								<span class="text-normal">拼团管理</span>
							</a>
						</div>
						<ul class="sidebar-trans"style="overflow: hidden; display: none;">
							<li>
								<a href="{{:U('Group/index')}}">
									<b class="sidebar-icon"><img src="__ROOT__/Public/Admin/Images/icon_order.png" width="16" height="16" /></b>
									<span class="text-normal">拼团列表</span>
								</a>
							</li>
							<li>
								<a href="{{:U('Group/order')}}">
									<b class="sidebar-icon"><img src="__ROOT__/Public/Admin/Images/icon_order.png" width="16" height="16" /></b>
									<span class="text-normal">拼团商品订单</span>
								</a>
							</li>
							<li>
								<a href="{{:U('Group/add')}}">
									<b class="sidebar-icon"><img src="__ROOT__/Public/Admin/Images/icon_order.png" width="16" height="16" /></b>
									<span class="text-normal">添加商品拼团</span>
								</a>
							</li>
						</ul>
					</div>
					<div class="sidebar-nav sidebar-nav-fold">
						<div class="sidebar-title">
							<a href="#">
								<span class="icon"><b class="fl icon-arrow-down"></b></span>
								<span class="text-normal">秒杀管理</span>
							</a>
						</div>
						<ul class="sidebar-trans"style="overflow: hidden; display: none;">
							<li>
								<a href="{{:U('Seckill/index')}}">
									<b class="sidebar-icon"><img src="__ROOT__/Public/Admin/Images/icon_order.png" width="16" height="16" /></b>
									<span class="text-normal">秒杀商品列表</span>
								</a>
							</li>
							<!--<li>-->
								<!--<a href="{{:U('Seckill/order')}}">-->
									<!--<b class="sidebar-icon"><img src="__ROOT__/Public/Admin/Images/icon_order.png" width="16" height="16" /></b>-->
									<!--<span class="text-normal">秒杀订单</span>-->
								<!--</a>-->
							<!--</li>-->
							<li>
								<a href="{{:U('Seckill/add')}}">
									<b class="sidebar-icon"><img src="__ROOT__/Public/Admin/Images/icon_order.png" width="16" height="16" /></b>
									<span class="text-normal">添加商品秒杀</span>
								</a>
							</li>
						</ul>


					</div>
					<!--<div class="sidebar-nav sidebar-nav-fold">-->
						<!--<div class="sidebar-title">-->
							<!--<a href="#">-->
								<!--<span class="icon"><b class="fl icon-arrow-down"></b></span>-->
								<!--<span class="text-normal">专题管理</span>-->
							<!--</a>-->
						<!--</div>-->
						<!--<ul class="sidebar-trans"style="overflow: hidden; display: none;">-->
							<!--<li>-->
								<!--<a href="#">-->
									<!--<b class="sidebar-icon"><img src="__ROOT__/Public/Admin/Images/icon_order.png" width="16" height="16" /></b>-->
									<!--<span class="text-normal">专题列表</span>-->
								<!--</a>-->
							<!--</li>-->
							<!--<li>-->
								<!--<a href="#">-->
									<!--<b class="sidebar-icon"><img src="__ROOT__/Public/Admin/Images/icon_order.png" width="16" height="16" /></b>-->
									<!--<span class="text-normal">添加专题</span>-->
								<!--</a>-->
							<!--</li>-->
						<!--</ul>-->
					<!--</div>-->
					<div class="sidebar-nav sidebar-nav-fold">
						<div class="sidebar-title">
							<a href="#">
								<span class="icon"><b class="fl icon-arrow-down"></b></span>
								<span class="text-normal">商城设置</span>
							</a>
						</div>
						<ul class="sidebar-trans"style="overflow: hidden; display: none;">
							<li>
								<a href="{{:U('System/info')}}">
									<b class="sidebar-icon"><img src="__ROOT__/Public/Admin/Images/icon_order.png" width="16" height="16" /></b>
									<span class="text-normal">店铺设置</span>
								</a>
							</li>
							<li>
								<a href="{{:U('System/pay')}}">
									<b class="sidebar-icon"><img src="__ROOT__/Public/Admin/Images/icon_order.png" width="16" height="16" /></b>
									<span class="text-normal">支付方式设置</span>
								</a>
							</li>
							<li>
								<a href="{{:U('System/express')}}">
									<b class="sidebar-icon"><img src="__ROOT__/Public/Admin/Images/icon_order.png" width="16" height="16" /></b>
									<span class="text-normal">快递设置</span>
								</a>
							</li>
							<!--<li>-->
								<!--<a href="#">-->
									<!--<b class="sidebar-icon"><img src="__ROOT__/Public/Admin/Images/icon_order.png" width="16" height="16" /></b>-->
									<!--<span class="text-normal">功能开启</span>-->
									<!--&lt;!&ndash;5.未支付订单超时设置-->
									<!--设置时间(规定时间内未付款,自动取消订单)-->
									<!--6.领券中心是否开启设置-->
									<!--是/否(未开启不能使用优惠券)-->
									<!--7.首页分类显示个数设置-->
									<!--(首页显示几个分类)&ndash;&gt;-->
								<!--</a>-->
							<!--</li>-->
						</ul>

					</div>
				</div>
			</div>
			<block name="box">
				<div class="view-product">
					<div class="info-center">
						<div class="manage-head">
							<h6 class="padding-left manage-head-con">店铺详情</h6>
						</div>
						<div class="offcial-table input-table table-margin clearfix">
							<div class="layui-container">
								<div class="layui-row  ">
									<div class=" layui-col-md1 layui-bg-red line-h">
										<i class="layui-icon line-h">&#xe612;</i>
									</div>
									<div class=" layui-col-md2 layui-bg-gray height-80 fenge-10">
										<h1>{{$num['user_num']}}</h1>
										<h2>用户总数</h2>
									</div>

									<div class=" layui-col-md1 layui-bg-cyan line-h">
										<i class="layui-icon line-h">&#xe735;</i>
									</div>
									<div class=" layui-col-md2 layui-bg-gray height-80 fenge-10">
										<h1>{{$num['goods_num']}}</h1>
										<h2>商品总数</h2>
									</div>
									<div class=" layui-col-md1 layui-bg-green line-h">
									<i class="layui-icon line-h">&#xe657;</i>
								</div>
									<div class=" layui-col-md2 layui-bg-gray height-80 fenge-10">
										<h1>{{$num['order_num']}}</h1>
										<h2>销售数量</h2>
									</div>
								</div>
								<div class="layui-row " style="margin: 20px 0;">
									<div class=" layui-col-md1 layui-bg-red line-h">
										<i class="layui-icon line-h" ></i>
									</div>
									<div class=" layui-col-md2 layui-bg-gray height-80 fenge-10">
										<h1>999</h1>
										<h2>消息数量</h2>
									</div>

									<div class=" layui-col-md1 layui-bg-cyan line-h">
										<i class="layui-icon line-h">&#xe62c;</i>
									</div>
									<div class=" layui-col-md2 layui-bg-gray height-80 fenge-10">
										<h1>{{$num['seckill_num']}}</h1>
										<h2>秒杀数量</h2>
									</div>
									<div class=" layui-col-md1 layui-bg-green line-h">
										<i class="layui-icon line-h">&#xe637;</i>
									</div>
									<div class=" layui-col-md2 layui-bg-gray height-80 fenge-10">
										<h1>{{$num['group_num']}}</h1>
										<h2>团购数量</h2>
									</div>
								</div>
								<div class="layui-row  ">
									<div class=" layui-col-md5 ">
										<div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
											<ul class="layui-tab-title">
												<li class="layui-this">店铺/订单状态提示</li>
											</ul>
											<div class="layui-tab-content">
												<div class="layui-col-md3">
													<h3><span class="layui-badge ">订</span>订单</h3>
													<ul>
														<li>未完成订单 <span>({{$status_num['order_n']}})</span></li>
														<li>已完成订单<span>({{$status_num['order_y']}})</span></li>
													</ul>

												</div>
												<div class="layui-col-md3">
													<h3><span class="layui-badge ">促</span>促销</h3>
													<ul>
														<li>拼单订单 <span>(22)</span></li>
														<li>秒杀订单<span>({{$status_num['order_gs']}})</span></li>
													</ul>
												</div>
												<div class="layui-col-md3">
													<h3><span class="layui-badge ">售</span>售后</h3>
													<ul>
														<li>待退款商品 <span>(22)</span></li>
														<!--<li>秒杀订单<span>(22)</span></li>-->
													</ul>
												</div>
												<div class="layui-col-md3">
													<h3><span class="layui-badge ">结</span>结算</h3>
													<ul>
														<li>待支付 <span>({{$status_num['order_npay']}})</span></li>
														<li>待结算确认<span>({{$status_num['order_ypay']}})</span></li>
													</ul>
												</div>
											</div>
										</div>


									</div>
									<div class=" layui-col-md5 layui-col-md-offset1">
										<div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
											<ul class="layui-tab-title">
												<li class="layui-this">商品销售排行</li>
											</ul>
											<div class="layui-tab-content">
												<if condition="$orderlist eq null">
													<div class="tr non-info show border-bottom-none">
														<span>暂时没有销量</span>
													</div>
													<else />
													<table class="layui-table">
														<colgroup>
															<col >
															<col >
															<col>
														</colgroup>
														<thead>
														<tr>
															<!--<th >排名</th>-->
															<th >订单编号</th>
															<th >商品名称</th>
															<th >销售数量</th>
														</tr>
														</thead>
														<tbody>
														<foreach name="orderlist" item="vo" key="k">
															<tr>
																<!--<td>{{$vo.name}}</td>-->
																<td>{{$vo.order_id}}</td>
																<td>{{$vo.name}}</td>
																<td>{{$vo.num}}</td>
															</tr>
														</foreach>
														</tbody>
													</table>
												</if>
											</div>
										</div>

									</div>


						</div>
							</div>
						</div>
					</div>
					<div class="show-page padding-big-right hidden">
						<div class="page">
						</div>
					</div>
				</div>

			</block>
		</div>

		<script>
			$(".sidebar-title").live('click', function() {
				if ($(this).parent(".sidebar-nav").hasClass("sidebar-nav-fold")) {
					$(this).next().slideDown(200);
					$(this).parent(".sidebar-nav").removeClass("sidebar-nav-fold");
				} else {
					$(this).next().slideUp(200);
					$(this).parent(".sidebar-nav").addClass("sidebar-nav-fold");
				}
			});
		</script>
	</body>

</html>